<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加文章</title>
<%@include file="/WEB-INF/view/common/css.jsp"%>
<%@include file="/WEB-INF/view/common/systemcss.jsp"%>
<%@include file="/WEB-INF/view/common/simditor.jsp"%>
<style type="text/css">
body{
padding:0px;
}
</style>
</head>
<body>
<form action="<en:path/>/system/ArticleSave.do" id="articeadfaskfdklasdform">
	上级菜单：<select name="navid">
		<c:forEach items="${list }" var="n">
		<option value="${n.id }">${n.name }</option>
		</c:forEach>
	</select>
	标题：<input type="text" name="title" placeholder="文章标题">
	排序:<input type="number" name="sort">
	图片:<input type="text" name="imgUrl">
<textarea id="editor" name="content"></textarea>

</form>

<script type="text/javascript">

var toolbar = ['title', 'bold','italic','underline','strikethrough','color','ol','ul','blockquote','code','table','link','image','hr','indent','outdent','outdent'];
var editor = new Simditor({
	textarea: $('#editor'),
	placeholder:'请输入内容',
	toolbar: toolbar,  
    upload:{
	 url: '../uploadfile.do',
		params: null,
		fileKey: 'file',
		connectionCount: 1,
		leaveConfirm: '正在上传文件，如果离开上传会自动取消'
	},
	pasteImage :true
});
</script>
</body>
</html>